# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-apache-libcloud
pkgver=3.1.0
pkgrel=0
pkgdesc="Python3 library for interacting with many popular cloud service providers using a unified API"
url="https://libcloud.apache.org/"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="py3-setuptools"
source="libcloud-$pkgver.tar.gz::https://github.com/apache/libcloud/archive/v$pkgver.tar.gz"
builddir="$srcdir"/libcloud-$pkgver

replaces=py-libcloud # Backwards compatibility
provides=py-libcloud=$pkgver-r$pkgrel # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="2211cd0fe50e8bf5c08536715636f9d89a552febcd69e477a21a2167f2bfc90c83be83fe1b4cf9ab856cf4265db013de9ef3cacfa19ff5c03fd0b204e4e6fc5a  libcloud-3.1.0.tar.gz"
